package com.wtwd.device.model;

import com.wtwd.device.constant.SeparatorConstant;

import java.io.Serializable;

/**
 * 重启和重置两个只能选择其中一个为1
 *
 *
 */
public class RemoteOperateTerminal implements Serializable {

    private static final long serialVersionUID = 178975478446L;


    /**
     * 重启 0=不执行，1=执行
     */
    private int restart;

    /**
     * 恢复除平台地址以外的出厂设置
     * <p>
     * 0=不执行，1=执行
     */
    private int reset;

    public int getRestart() {
        return restart;
    }

    public void setRestart(int restart) {
        this.restart = restart;
    }

    public int getReset() {
        return reset;
    }

    public void setReset(int reset) {
        this.reset = reset;
    }

    @Override
    public String toString() {
        return "RemoteOperateTerminal{" +
                "restart=" + restart +
                ", reset=" + reset +
                '}';
    }

    public String serialization() {
        return String.valueOf(this.restart)+ SeparatorConstant.CMD_BODY_SEGMENTATION+this.reset;
    }
}
